package com.study.gamecube.pojo;

import lombok.Data;
import org.hibernate.annotations.Type;
import org.joda.money.Money;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**游戏
 * @author peng
 */
@Data
@Entity
@Table(name = "tb_goods")
public class GameGoods extends BaseEntity implements Serializable {
   @Column(name = "game_name")
    private String gameName;
    @Type(type = "org.jadira.usertype.moneyandcurrency.joda.PersistentMoneyMinorAmount",
            parameters = {@org.hibernate.annotations.Parameter(name = "currencyCode", value = "CNY")})
    private Money price;
    @Column(length = 4)
    private String version;
}
